package com.bto.solar.work.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.sql.Timestamp;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 路由表：	1、快递公司	2、自己运输，使用route，收发货地址信息
 * </p>
 *
 * @author adrian
 * @since 2023-09-08
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sto_route")
@ApiModel(value = "StoRoute对象", description = "路由表：	1、快递公司	2、自己运输，使用route，收发货地址信息")
public class StoRoute implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("路由id")
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    @ApiModelProperty("出库id")
    private String exportId;

    @ApiModelProperty("入库id")
    private String importId;

    @ApiModelProperty("运单编号（运单单号）")
    private String waybillCode;

    @ApiModelProperty("运输方式(自运，韵达、顺丰)")
    private String shippingMethod;

    @ApiModelProperty("出货仓库")
    private String shipperStoId;

    @ApiModelProperty("发货人姓名")
    private String shipperName;

    @ApiModelProperty("发货人电话")
    private String shipperPhone;

    @ApiModelProperty("发货地址")
    private String shipAddr;

    @ApiModelProperty("收货时间")
    private Timestamp receivingTime;

    @ApiModelProperty("收货人姓名")
    private String consigneeName;

    @ApiModelProperty("收货人电话")
    private String consigneePhone;

    @ApiModelProperty("收货仓库id")
    private String consigneeStoId;

    @ApiModelProperty("收货地址")
    private String deliveryAddress;

    @ApiModelProperty("状态：TRA-ING运输中、CONTROLLED管控、EXPTION异常")
    private String state;

    @ApiModelProperty("备注")
    private String ramrk;

    @ApiModelProperty("运输人姓名")
    private String transportName;

    @ApiModelProperty("运输人电话")
    private String transportPhone;

    @ApiModelProperty("运输车车牌")
    private String transportCarCard;

    @ApiModelProperty("运输车相关照片")
    private String transportCarImages;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Timestamp createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Timestamp updateTime;
}
